package Test;

import java.util.List;

public class test {
    public static void main(String[] args) {
        //买52张牌
        CardDemo cardDemo=new CardDemo();
        List<Card> cardList= cardDemo.BuyCard();
        System.out.println(cardList);
        //洗牌
        cardDemo.shuffle(cardList);
        System.out.println(cardList);
        //三个人在五轮中每个人揭牌一张

        List<List<Card>> ret=cardDemo.play(cardList);
        for (int i = 0; i < ret.size(); i++) {
            System.out.println("第"+(i+1)+"的人牌:"+ret.get(i));
        }
    }
}
